package com.sanben.common.web.entity;

import java.util.List;

/**
 * @author: cyh
 * @description: 树形类
 * @date: 2020/8/3 10:44
 */
public interface TreeEntity<E> {

    /**
     * id
     * @return
     */
    Integer getId();

    /**
     * 父级id
     * @return
     */
    Integer getParentId();

    /**
     * 子类
     * @param childList
     */
    void setChildList(List<E> childList);
}
